package de.slothsoft.commons.swing.util;

import java.awt.Component;

import javax.swing.JOptionPane;

import de.slothsoft.commons.res.CommonMessages;

public class JOptionPaneUtil {

	public static boolean confirm(Component parent, String message) {
		return JOptionPane.showConfirmDialog(parent, message,
				CommonMessages.getString("MessageUtil.confirmTitle"),
				JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == 0;
	}

	private JOptionPaneUtil() {
		// I'm a pirate! (i.e. away)
	}
}
